package com.kuqi.blog.service;

import com.kuqi.blog.dao.pojo.Comment;
import com.kuqi.blog.dao.pojo.SysUser;
import com.kuqi.blog.vo.Result;
import com.kuqi.blog.vo.UserVo;

import java.util.List;

/**
 * @author:kuqi
 * @createTime:2021/12/5 20:27
 * @description:
 */
public interface SysUserService {
    SysUser findUserById(Long id);

    SysUser findUser(String account, String pwd);

    /**
     * 获取用户token令牌接口
     * @param token
     * @return
     */
    Result findUserByToken(String token);

    /**
     * 令牌校验接口
     * @param token
     * @return
     */
    SysUser checkToken(String token);

    /**
     * 根据账号查询用户接口
     *
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);

    void save(SysUser sysUser);

    /**
     * 查找用户信息，存储到UserVo中
     * @param authorId
     * @return
     */
    UserVo findUserVoById(Long authorId);

}
